//
//  BaseView.m
//  BaseLib
//
//  Created by CPX on 2018/5/23.
//  Copyright © 2018年 CPX. All rights reserved.
//

#import "BaseView.h"

/**
 基类View
 @author yzl
 */
@implementation BaseView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    
    if (self){
        
        [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(onAppLayoutDirectionSettingChanged:) name:@"direction_layout_change" object:nil];
        
        return self;
    }
    return nil;
}

- (void)onAppLayoutDirectionSettingChanged:(NSNotification *)notification{
    
}

- (void)dealloc{
    [[NSNotificationCenter defaultCenter] removeObserver:self];
}

@end
